package com.happycolor.qeuip.model;




public class Qeindex {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public Qeindex () {
		super();
	}


	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String iname;
	private java.lang.Integer parentiid;
	private java.lang.Integer iorder;
	private java.lang.Integer ilevel;
	private java.lang.String idetailinfo;
	private java.lang.Integer lmuser;
	private java.util.Date lmtime;
	private java.lang.Integer dstatus;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="sequence"
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: INAME
	 */
	public java.lang.String getIname () {
		return iname;
	}

	/**
	 * Set the value related to the column: INAME
	 * @param iname the INAME value
	 */
	public void setIname (java.lang.String iname) {
		this.iname = iname;
	}



	/**
	 * Return the value associated with the column: PARENTIID
	 */
	public java.lang.Integer getParentiid () {
		return parentiid;
	}

	/**
	 * Set the value related to the column: PARENTIID
	 * @param parentiid the PARENTIID value
	 */
	public void setParentiid (java.lang.Integer parentiid) {
		this.parentiid = parentiid;
	}



	/**
	 * Return the value associated with the column: IORDER
	 */
	public java.lang.Integer getIorder () {
		return iorder;
	}

	/**
	 * Set the value related to the column: IORDER
	 * @param iorder the IORDER value
	 */
	public void setIorder (java.lang.Integer iorder) {
		this.iorder = iorder;
	}



	/**
	 * Return the value associated with the column: ILEVEL
	 */
	public java.lang.Integer getIlevel () {
		return ilevel;
	}

	/**
	 * Set the value related to the column: ILEVEL
	 * @param ilevel the ILEVEL value
	 */
	public void setIlevel (java.lang.Integer ilevel) {
		this.ilevel = ilevel;
	}



	/**
	 * Return the value associated with the column: IDETAILINFO
	 */
	public java.lang.String getIdetailinfo () {
		return idetailinfo;
	}

	/**
	 * Set the value related to the column: IDETAILINFO
	 * @param idetailinfo the IDETAILINFO value
	 */
	public void setIdetailinfo (java.lang.String idetailinfo) {
		this.idetailinfo = idetailinfo;
	}



	/**
	 * Return the value associated with the column: LMUSER
	 */
	public java.lang.Integer getLmuser () {
		return lmuser;
	}

	/**
	 * Set the value related to the column: LMUSER
	 * @param lmuser the LMUSER value
	 */
	public void setLmuser (java.lang.Integer lmuser) {
		this.lmuser = lmuser;
	}



	/**
	 * Return the value associated with the column: LMTIME
	 */
	public java.util.Date getLmtime () {
		return lmtime;
	}

	/**
	 * Set the value related to the column: LMTIME
	 * @param lmtime the LMTIME value
	 */
	public void setLmtime (java.util.Date lmtime) {
		this.lmtime = lmtime;
	}



	/**
	 * Return the value associated with the column: DSTATUS
	 */
	public java.lang.Integer getDstatus () {
		return dstatus;
	}

	/**
	 * Set the value related to the column: DSTATUS
	 * @param dstatus the DSTATUS value
	 */
	public void setDstatus (java.lang.Integer dstatus) {
		this.dstatus = dstatus;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.happycolor.qeuip.model.Qeindex)) return false;
		else {
			com.happycolor.qeuip.model.Qeindex qeindex = (com.happycolor.qeuip.model.Qeindex) obj;
			if (null == this.getId() || null == qeindex.getId()) return false;
			else return (this.getId().equals(qeindex.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}




}